<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>

<div class="container-fluid">
    <div class="row">
        <div th:replace="~{commons/commons::sidebar(active='list.html')}"></div>


        <div class="col-md-3"></div>
        <main role="main" class="col-md-4 ml-sm-auto pt-3 px-4">
            <div class="text-center" style="border: black solid 1px">
                <br><br/>
                <form th:action="@{/del/{name}(name=${s})}" method="post">
                    <p>确定要删除此岗位吗？</p>
                    岗位：<text th:text="${s}" th:value="${s}" th:name="name"></text>
                    <div >
                        <br>
                        <a class="btn btn-sm btn-primary" style="margin-left: 10px"th:href="@{/cancel}">取消</a>
                        <button type="submit" class="btn btn-sm btn-danger" style="margin-left: 10px">删除</button>
                    </div>
                </form>

            </div>
        </main>

        <div class="col-md-3"></div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="static/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="static/js/popper.min.js"></script>
<script type="text/javascript" src="static/js/bootstrap.min.js"></script>


<!-- Icons -->
<script type="text/javascript" src="static/js/feather.min.js"></script>
<script>
    feather.replace()
</script>

<script>
    function qc() {


    }
</script>
<!-- Graphs -->
<script type="text/javascript" src="static/js/Chart.min.js"></script>
<script>
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });
</script>

</body>

</html>